# 导包
from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys

# 实例化浏览器
driver = webdriver.Edge()

# 网址
my_url = 'https://www.leafground.com/select.xhtml'

# 打开网页
driver.get(my_url)

# 窗口最大化
driver.maximize_window()

# 鼠标滚动
# 向下滚动--下拉菜单有多个选项，模拟鼠标滚动到最底部那个，并点击选择
dropdown = driver.find_element(By.ID, 'j_idt87:lang_label')
dropdown.click()
# 模拟鼠标滚轮向下滚动
for _ in range(8):
    ActionChains(driver).send_keys(Keys.ARROW_DOWN).perform()

# 等待3秒
sleep(3)

# 关闭实例化浏览器
driver.quit()